package edu.upb.acs.jobsmaps.database.task;

/**
 * Created by dani on 6/29/2014.
 */
public class AsyncTaskResult<T> {
	private T result;
	private Exception error;

	public AsyncTaskResult(T result) {
		super();
		this.result = result;
	}

	public AsyncTaskResult(Exception error) {
		super();
		this.error = error;
	}

	public T getResult() {
		return result;
	}

	public Exception getError() {
		return error;
	}

}
